﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ATIONList.aspx.cs" Inherits="GPCSC.Web.SYS_ORG.ATIONList" %>

<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="nicklee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
      <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />

     <script src="../scripts/jquery-1.4.1.min.js" type="text/jscript" language="javascript"></script>

    <script type="text/javascript">
		function OnNodeCheck(sender, eventArgs)
		{
			if (eventArgs.get_node().get_id()!=null&&eventArgs.get_node().get_id()!="")
			{
				if (eventArgs.get_node().get_checked()==true)
				{
				    if(eventArgs.get_node().get_nodes().get_length()>0)
				    {
				        eventArgs.get_node().CheckAll();
				        entityTree.Render();  
				    }
//						if (eventArgs.get_node().get_parentNode()!=null)
//						{
//							eventArgs.get_node().get_parentNode().set_checked(true);
//							if (eventArgs.get_node().get_parentNode().get_nodes().get_length()>1)
//							{
//								eventArgs.get_node().get_parentNode().CheckAll();;
//							}
//							entityTree.Render();
//						}
				}
				else
				{
				    if(eventArgs.get_node().get_nodes().get_length()>0)
				    {
				        eventArgs.get_node().UnCheckAll();
				        entityTree.Render(); 
				    }
//					    if (eventArgs.get_node().get_parentNode()!=null)
//						{
//							eventArgs.get_node().get_parentNode().set_checked(true);
//							if (eventArgs.get_node().get_parentNode().get_nodes().get_length()>1)
//							{
//								eventArgs.get_node().get_parentNode().UnCheckAll();;
//							}
//							entityTree.Render(); 
//						}
				}
			}
		}
	function OnToolBarSelect(e)
	{
		if (e=="CLOSE")
		{
			window.parent.Telligent_Modal.Close();	
		}
		else if (e=="RESET")
		{
		   window.location.reload();
			//window.location.href=window.location.href;
		}
	}
    </script>
</head>
<body style="overflow:hidden">
    <form id="form1" runat="server" >
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackErrorMessage="系统处理超时,请重新操作"
        AsyncPostBackTimeout="3600" EnablePageMethods="false">
    </asp:ScriptManager>
    <table class="tableBase" cellspacing="1" cellpadding="1">
        <tr class="trBase">
            <td class="tdToolBar"><!-- style="width: 100%; text-align: right;"-->
                <table id="tabid" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td>
                            <asp:Label ID="Type_Name" runat="server" Font-Size="Small"></asp:Label>
                            <asp:Label ID="Label1" runat="server" CssClass="labelOrange"></asp:Label>
                            <asp:Label ID="lblMessage" runat="server" CssClass="labelOrangeWeight"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="tdToolBar">
                <asp:UpdatePanel ID="MUpdatePanel" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                    <ContentTemplate>
                        <asp:Button runat="server" ID="CONFIG" CssClass="buttonBase" Text="配置权限" OnClick="CONFIG_Click" />
                        <asp:Button runat="server" ID="RESET" CssClass="buttonBase" Text="恢复默认" OnClientClick="window.location.href=window.location.href;return false;" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    <table id="mainTable" width="200px" height="400px" cellspacing="1" cellpadding="1" style="overflow:scroll;" class="tableBase">
        <tr class="trBase">
            <td height="95%" style="overflow:auto;"  valign="middle" align="center" width="100%">
                <nicklee:CallBack runat="server" ID="Callback2" 
                    Width="99%" Height="100%" OnCallback="Callback2_Callback" PostState="True">
                    <Content>
                        <nicklee:TreeView ID="entityTree" Width="100%" Height="100%" EnableViewState="True"
                            DragAndDropEnabled="false" NodeEditingEnabled="false" KeyboardEnabled="true"
                            MultipleSelectEnabled="true" ShowLines="true" CssClass="TreeViewMargin" NodeCssClass="TreeNode"
                            SelectedNodeCssClass="SelectedTreeNode" MultipleSelectedNodeCssClass="MultipleSelectedTreeNode"
                            HoverNodeCssClass="HoverTreeNode" NodeEditCssClass="NodeEdit" CutNodeCssClass="CutTreeNode"
                            MarginWidth="24" DefaultMarginImageWidth="24" DefaultMarginImageHeight="20" LineImageWidth="19"
                            LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16" NodeLabelPadding="3"
                            ParentNodeImageUrl="folders.gif" LeafNodeImageUrl="folder.gif" CollapseImageUrl="exp.gif"
                            ExpandImageUrl="col.gif" ExpandCollapseImageWidth="19" ExpandCollapseImageHeight="20"
                            ImagesBaseUrl="../images/" LineImagesFolderUrl="../images/"
                            runat="server" LoadingFeedbackText="系统载入中..." 
                            ExpandSinglePath="False">
                            <ClientEvents>
                                <NodeCheckChange EventHandler="OnNodeCheck" />
                            </ClientEvents>
                        </nicklee:TreeView>
                    </Content>
                    <LoadingPanelClientTemplate>
                        <table class="tableEmpty">
                            <tr>
                                <td class="tdEmpty">
                                </td>
                            </tr>
                        </table>
                        <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                            bgcolor="#e0e0e0">
                            <tr>
                                <td align="center">
                                    <table cellspacing="0" cellpadding="0" border="0">
                                        <tr>
                                            <td style="font-family: tahoma; font-size: 12px;">
                                                数据载入中...&nbsp;
                                            </td>
                                            <td>
                                                <img alt="" src="../../images/Callback/spinner.gif" width="16" height="16" border="0" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </LoadingPanelClientTemplate>
                </nicklee:CallBack>
            </td>
        </tr>
    </table>
    </div>
    </form>
    <script type="text/javascript">
	$(document).ready(function()
	{
		f_initPage();
	});
	function f_initPage()
	{
		try {
            var cHeight = document.body.clientHeight;
            var cWidth = document.body.clientWidth;
            if (cHeight == 0) {
                window.location.reload();
            }
            else 
			{
                document.getElementById("mainTable").style.height = cHeight - 23;
            }
        } catch (e) { }
        window.setTimeout("Callback2.Callback();",200);
	}
	function exWebForm_OnSubmit()
	{
		try{top.Show_topBusyBox();}catch(e){}
    	return true;
	}
    </script>
</body>

</html>
